package es.abredatos.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class LocateLibraryEvent extends GwtEvent<LocateLibraryEventHandler> {

	public static Type<LocateLibraryEventHandler> TYPE = new Type<LocateLibraryEventHandler>();
	private String id;

	public LocateLibraryEvent(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	@Override
	protected void dispatch(LocateLibraryEventHandler handler) {
		handler.onLocateLibraryEvent(this);
	}

	@Override
	public Type<LocateLibraryEventHandler> getAssociatedType() {
		return TYPE;
	}

}
